dialog: Remove code that doesn't work anymore
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 May 2020 19:31:19 +0000 (15:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 May 2020 02:38:21 +0000 (22:38 -0400)
When GtkContainer goes away, we don't have an
"add" signal anymore.

gtk/gtkdialog.c

index ca0e67ed21ca6d18cdee066c0efe42c19a043601..0fbb5c3be7028913c500486d4b6b72f7880c89e6 100644 (file)
@@ -404,19 +404,6 @@ update_suggested_action (GtkDialog *dialog)
     }
 }
 
-static void
-add_cb (GtkContainer *container,
-        GtkWidget    *widget,
-        GtkDialog    *dialog)
-{
-  GtkDialogPrivate *priv = gtk_dialog_get_instance_private (dialog);
-
-  if (priv->use_header_bar)
-    g_warning ("Content added to the action area of a dialog using header bars");
-
-  gtk_widget_set_visible (priv->action_box, TRUE);
-}
-
 static void
 gtk_dialog_constructed (GObject *object)
 {
@@ -464,8 +451,6 @@ gtk_dialog_constructed (GObject *object)
 
       update_suggested_action (dialog);
       _gtk_header_bar_track_default_decoration (GTK_HEADER_BAR (priv->headerbar));
-
-      g_signal_connect (priv->action_area, "add", G_CALLBACK (add_cb), dialog);
     }
   else
     {